import {getAccountRule} from "@src/api/member";

Component({
  options: {
    addGlobalClass: true
  },
  properties: {
    infoData: {
      type: Object
    },
    themeColor: {
      type: String
    },
    themeTitleColor: {
      type: String
    },
  },
  data: {
    dialogShow: false
  },
  lifetimes: {
    ready: function () {
      this.fetchData();
    },
  },
  methods: {
    fetchData() {
      getAccountRule().then(res => {
        if (res.code === 0) {
          this.setData({accountRuleData: res.data})
        }
      })
    },
    open() {
      console.info("dialogShow", true)
      this.setData({dialogShow: true})
    },
    close() {
      this.setData({dialogShow: false})
    },
    handleStop() {
      return true;
    }
  }
})
